import {request} from './request'
 
export function getData(url,params){
    return request({
        url,
        params
    })
}

export function setData(url,data){
    return request({
        url,
        data,
        method : 'post'
    })
}

export function putData(url,data){
    return request({
        url,
        data,
        method : 'put'
    })
}

export function deleteData(url,data){
    return request({
        url,
        data,
        method : 'delete'
    })
}